home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / uugetty.z / uugetty
Encoding:
Text File  |  1998-10-20  |  6.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UUUUUUUUGGGGEEEETTTTTTTTYYYY((((1111MMMM))))                                                        UUUUUUUUGGGGEEEETTTTTTTTYYYY((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      uugetty - set terminal type, modes, speed, and line discipline
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////lllliiiibbbb////uuuuuuuuccccpppp////uuuuuuuuggggeeeettttttttyyyy [----hhhhNNNNDDDDrrrr] [----tttt timeout] [----dddd delay]
  13.                [----iiii chat1,[chat2]] line [speed [type [linedisc]]]
  14.      ////uuuussssrrrr////lllliiiibbbb////uuuuuuuuccccpppp////uuuuuuuuggggeeeettttttttyyyy ----cccc file
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _u_u_g_e_t_t_y is similar to _g_e_t_t_y(1M), but changes have been made to support
  18.      using the line for _u_u_c_i_c_o, _c_u, and _c_t; that is, the line can be used in
  19.      both directions.  The _u_u_g_e_t_t_y will allow users to login, but if the line
  20.      is free, _u_u_c_i_c_o, _c_u, or _c_t can use it for dialing out.  The
  21.      implementation depends on the fact that _u_u_c_i_c_o, _c_u, and _c_t create lock
  22.      files when devices are used.  When the "open()" returns (or the first
  23.      character is read when ----rrrr option is used), the status of the lock file
  24.      indicates whether the line is being used by _u_u_c_i_c_o, _c_u, _c_t, or someone
  25.      trying to login.
  26.  
  27.      The ----dddd option specifies a number of seconds to wait after the first
  28.      character is available from the line, and then to discard all input.
  29.      This option can be useful with modems which provide 'call progress'
  30.      information when answering.  For example, the ----dddd option can be used to
  31.      ignore 'RING' and 'CONNECT' which would otherwise fool _u_u_g_e_t_t_y into
  32.      invoking _l_o_g_i_n before the correct speed has been determined.  When
  33.      possible, two chat-scripts should be used with ----iiii option instead.
  34.  
  35.      The ----iiii option specifies one or two "chat-script" entries in
  36.      ////eeeettttcccc////uuuuuuuuccccpppp////DDDDiiiiaaaalllleeeerrrrssss.  _U_u_g_e_t_t_y uses the first chat-script before going to
  37.      sleep to wait for the first input.  This should be used to tell a modem
  38.      to answer the telephone the next time it rings.  The modem can be
  39.      configured to not answer until _u_u_g_e_t_t_y is ready to answer.
  40.  
  41.      The second chat-script used with ----iiii can be used to wait for the modem to
  42.      say the connection is completely established.  This allows stray 'RING'
  43.      messages or long modem protocol negotiations to be ignored gracefully.
  44.  
  45.      ----NNNN option honors the ////eeeettttcccc////nnnnoooollllooooggggiiiinnnn file.  When present, _u_u_g_e_t_t_y does not
  46.      answer the line, but instead waits for the file to go away.
  47.  
  48.      Unless _u_u_g_e_t_t_y is invoked with the ----hhhh flag, _u_u_g_e_t_t_y will force a hangup
  49.      on the line by setting the speed to zero before setting the speed to the
  50.      default or specified speed.  The ----tttt flag plus _t_i_m_e_o_u_t (in seconds),
  51.      specifies that _u_u_g_e_t_t_y should exit if the open on the line succeeds and
  52.      no one types anything in the specified number of seconds.
  53.  
  54.      The ----DDDD option turns on _u_u_c_i_c_o debugging, with the output sent to the
  55.      system log, /_v_a_r/_a_d_m/_S_Y_S_L_O_G. It can be useful for testing a script
  56.      specified with the ----iiii option.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UUUUUUUUGGGGEEEETTTTTTTTYYYY((((1111MMMM))))                                                        UUUUUUUUGGGGEEEETTTTTTTTYYYY((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      Note that when the ----rrrr option is used, several <carriage-return>
  75.      characters may be required before the login message is output.  The human
  76.      users will be able to handle this slight inconvenience.  _U_u_c_i_c_o trying to
  77.      login will have to be told by using the following login script:
  78.  
  79.           ""  \r\d\r\d\r\d\r in:--in: ...
  80.  
  81.      where the ... is whatever would normally be used for the login sequence.
  82.  
  83.      An entry for direct line that has a _u_u_g_e_t_t_y on each end must use the ----rrrr
  84.      option.  This causes _u_u_g_e_t_t_y to wait to read a character before it puts
  85.      out the login message, thus preventing two uugettys from looping.  If
  86.      there is a _u_u_g_e_t_t_y on one end of a direct line, there must be a _u_u_g_e_t_t_y
  87.      on the other end as well.
  88.  
  89.      Here is an ////eeeettttcccc////iiiinnnniiiittttttttaaaabbbb entry using _u_u_g_e_t_t_y on an intelligent modem:
  90.  
  91.      t5:23:respawn:/usr/lib/uucp/uugetty -Nt 60 -itelebitin,conn ttyf5 dx_19200
  92.  
  93.      Note that a ////eeeettttcccc////ggggeeeettttttttyyyyddddeeeeffffssss entry which cycles among the speed(s)
  94.      appropriate for the modem should be chosen.  Modems which "lock" to a
  95.      single speed, such as most high speed modems, should be used with a
  96.      ggggeeeettttttttyyyyddddeeeeffffssss entry which sticks to a single speed, such as dx_19200.
  97.  
  98.      When _u_u_g_e_t_t_y is invoked with the ----cccc option and _f_i_l_e, it scans the file as
  99.      if it were scanning ////eeeettttcccc////ggggeeeettttttttyyyyddddeeeeffffssss during normal operation, and prints
  100.      out the results to the standard output.  If there are any unrecognized
  101.      modes or improperly constructed entries, it reports these.  If the
  102.      entries are correct, it prints out the values of the various flags.  See
  103.      _i_o_c_t_l(2) to interpret the values.  Note that some values are added to the
  104.      flags automatically.
  105.  
  106. FFFFIIIILLLLEEEESSSS
  107.      /etc/nologin
  108.      /etc/gettydefs
  109.      /var/adm/SYSLOG
  110.      /etc/uucp/Dialers
  111.      /etc/issue
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      login(1), cu(1C), getty(1M), init(1M), uucico(1M), ioctl(2),
  115.      gettydefs(4), inittab(4), duart(7), tty(7)
  116.  
  117. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  118.      Most error messages are sent to the system log, /_v_a_r/_a_d_m/_S_Y_S_L_O_G.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.